package main

import "fmt"

func main() {
  var a map[string]int
  if a == nil {
    a = make(map[string]int, 16)
    fmt.Printf("a=%v\n",a) //a=map[]
    a["stu01"] = 1000
    a["stu02"] = 1000
    a["stu03"] = 1000

    fmt.Printf("a=%v\n",a) //a=map[stu01:1000 stu02:1000 stu03:1000]
    //使用%#v 更详细的显示内部结构
    fmt.Printf("a=%#v\n",a) //a=map[string]int{"stu01":1000, "stu02":1000, "stu03":1000}
  }
}
